package com.dragon.mmochat.model.enumType;

import java.awt.Color;

//更改此enum后，需要提升MmochatConstant.shopClassVersion
public enum MmochatShopClassType {
	打折促销(50, Color.magenta, null),

	功能道具(1, null, null), 补血补蓝(2, null, null), 特色道具(3, null, null), 装备法宝(4,
			null, null),

	限时出售(51, Color.green, null),

	充值元宝(100, Color.yellow, null),

	玩家系统(110, Color.magenta, null),

	刷道比赛(120, Color.magenta, null);

	int value;
	Color color;
	Integer bmpId;

	MmochatShopClassType(int value, Color color, Integer bmpId) {
		this.value = value;
		this.color = color;
		this.bmpId = bmpId;
	}

	public int getValue() {
		return value;
	}

	public Color getColor() {
		return color;
	}

	public Integer getBmpId() {
		return bmpId;
	}

	public static MmochatShopClassType get(int v) {
		for (MmochatShopClassType shop : MmochatShopClassType.values()) {
			if (shop.getValue() == v) {
				return shop;
			}
		}
		return null;
	}

}
